-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-6999: [Python] Fix unnamed index when specifying schema in Table.from_pandas #5750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-6999: [Python] Fix unnamed index when specifying schema in Table.from_pandas #5750
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5750 +/- ##
===========================================
- Coverage 88.96% 66.92% -22.05%
===========================================
Files 992 534 -458
Lines 135218 75606 -59612
Branches 1501 0 -1501
===========================================
- Hits 120300 50596 -69704
- Misses 14553 25010 +10457
+ Partials 365 0 -365
Continue to review full report at Codecov.
|
fsaintjacques
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small code structure proposition, non-blocking. I can't comment on the validity, I don't know what a RangeIndex is :)
|
@fsaintjacques Thanks for the review! Simplified a bit based on your comment, and also ended up combining both functions in one. |
pitrou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a very minor comment.
python/pyarrow/pandas_compat.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotta love this error message :-)
29d9628 to
199de55
Compare
pitrou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
https://issues.apache.org/jira/browse/ARROW-6999